cmake_minimum_required(VERSION 3.12)

#project(sub C CXX)

message(STATUS "in sub. PROJECT_SOURCE_DIR = ${PROJECT_SOURCE_DIR}")
message(STATUS "in sub. CMAKE_CURRENT_SOURCE_DIR = ${CMAKE_CURRENT_SOURCE_DIR}")
message(STATUS "in sub. CMAKE_CURRENT_LIST_FILE = ${CMAKE_CURRENT_LIST_FILE}")

add_library(sub SHARED sub.cpp)